// 1、导出request
import request from '../utils/request'
// 共享场地接口
export const GetshareField = params=>request.get("/api/share_fields",{params});
// 添加场地接口
export const AddshareField = data=>request.post("/api/fields",data);
// 删除场地接口
export const DelshareField = id =>request.delete("/api/fields/"+id);
// 编辑场地接口
export const upDateshare= data =>request.put("/api/fields",data);
// 获取公司接口
export const GetCompany= params =>request.get("/api/company",{params});
// 获取场馆
export const GetStadium = params =>request.get("/api/stadium",{params});
//挂起获取场馆
export const Getcg = params =>request.get("/api/stadium",{params})
export const Getcg1 = params =>request.get("/api/stadium",{params})
//挂起获取运动类型
export const Getsports = params =>request.get("/api/sport",{params})
//获取挂起时间
export const Getsession = params =>request.get("/api/getSession",{params})
//获取挂起列表
export const holdList = params =>request.get("/api/hold_list",{params})
//批量挂起
export const holdBatch = data=>request.post("/api/hold_batch",data)
//取消挂起
export const Delgua = data=>request.put("/api/hold_del",data)
//session挂起
export const holdBatchBysession = data=>request.post("/api/hold_by_sessions",data)
